package src.main.java.org.io;

public class Test4 {
    public static void main(String[] args) {
        try {
            System.out.println(10/0);
        }catch (Exception e){
            e.printStackTrace();
        }finally {
            System.out.println("finally执行了");
        }
    }
    public static int chu(int a,int b){
        try {
            return a/b;
        }catch (Exception e){
            e.printStackTrace();
            return -1;//代表出现异常
        }finally {
            //千万不要在finally中返回数据
            return 111;
        }
    }
}
